package demo.spring.boot.health;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.CounterService;
import org.springframework.stereotype.Service;

/**
 * Created by lushun.chen on 2017/3/11.
 *
 * @author lushun.chen
 */
@Service("myServer")
public class MyService {

    @Autowired
    private CounterService counterService;

    public void exampleMethOd() {
        counterService.increment("services.system.myservice.invoked");
    }
}
